<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    div{
        height: 300px;
        background-color: red;
        color: white;
        text-align: center;
        line-height: 300px;
        font-size: 28px;
        /* 需要过度的属性名称 */
        /* transition-property: font-size; */
        /* 设置过度持续时长 */
        /* transition-duration:2s ; */
        /* 设置过度速度曲线 */
        /* transition-timing-function: linear; */
        /* 多个属性过度 */
        transition:font-size 2s  linear,background-color 2s linear;
    }
    /* 过度触发条件 */
    div:hover{
        font-size: 68px;
        color:green;
        background-color: pink;
    }
    img{
        transition: width 2s linear;
    }
    img:hover{
        width: 250px;
    }
</style>
<body>
    <div>山西农业大学</div>
    <img width="150px" src="../音视频/6.jpg">
</body>
</html>